import fs from 'fs'
import { error } from './output.js'

export const readFileSync = (filepath) => {
  if (!fs.existsSync(filepath)) {
    error(`Can't find file: ${ filepath }`)
  }
  return fs.readFileSync(filepath, 'utf8')
}
